<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-07 16:03:53
 * @LastEditTime : 2022-09-07 16:12:24
 * @FilePath     : \src\components\todo-list-statics.vue
-->
<template>
    <div>我是todo-list-statistics组件：{{ localUser }}</div>
  </template>
  
  <script>
  import { defineComponent, inject } from "vue";
  
  export default defineComponent({
      name: 'TodoListStatistics',
      created() {
          console.log(`注入的属性为：${this.user}`)
      },
      inject: {
        /* 本地属性名 */ localUser: {
        from: /* 注入来源名 */ 'user'
      }
  },
      setup() {
      }
  })
  </script>